﻿@model Yglab.Models.Gui_InitializeJournals

<script type="text/javascript">
    
    function addquestionfunc() {
        $("fieldset.qs").append("<input type=\"text\" value=\"\" placeholder=\"Anket sorusu..\" name=\"Questions\" id=\"Questions\">");
    }
</script>

<div class="row">
<div class="span8 offset3">
@using (Html.BeginForm("InitializeJournal", "Journal", FormMethod.Post, new { @class = "form-horizontal" }))
{
    <fieldset>
        @Html.Hidden("journalpath", @Model.Journal.PathName)

        @Html.ListBox("SubjectIds", new SelectList(Model.Subjects, "Id", "Name")) 
        <br />
        <br />
        @Html.ListBox("ScienceIds", new SelectList(Model.Sciences, "Id", "Name")) 
        <br />
        <br />
        @Html.TextBox("ArticleNum", "", new { @placeholder = "makale sayısı.." })
        <br />
        <br />
    </fieldset>
    
    <fieldset class="qs">
        @Html.TextBox("Questions", "", new { @placeholder = "Anket sorusu.." })
    </fieldset>
    
    <a href="#" class="addquestion" onclick="addquestionfunc();">Bir soru daha?</a>
    <br />
    
    <button type="submit" class="btn">Kabul et</button>
} 


<p> Bu formu göndermekle @Model.Journal.Name dergisinin editörlüğünü kabul etmiş olacaksınız.. </p>
</div>
</div>